#import "UIPreferencesTableButton.h"

@implementation UIPreferencesTableButton

- (void)mouseUp:(struct __GSEvent *)event {
	[self setSelected:YES withFade:NO];
	if (delegate) { 
		[delegate buttonPressed:cellData];
	}
	[self setSelected:NO withFade:YES];
}

- (void)setDelegate:(id)_id {
	delegate = _id;
}

- (void)setCellData:(NSString *)_cellData {
	cellData = _cellData;
	[cellData retain];
}

- (NSString *)cellData {
	return cellData;
}

- (void)dealloc {
    [cellData release];
}

@end
